<%@page import="com.zhuoshi.bean.ContractSubBean"%>
<%@page import="com.zhuoshi.dao.ContractSubDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String numerical = request.getParameter("numerical");

	ContractSubDao dao = new ContractSubDao();
	ContractSubBean bean = new ContractSubBean();
	bean.setNumerical(Integer.parseInt(numerical));
	List<ContractSubBean> list = dao.getList(bean);
	String str = "";
	str = "<option value="+">---请选择备件名称---</option>";
	for (ContractSubBean csBean : list) {
		str = str + "<option value=" + csBean.getSqarename() + ">" + csBean.getSqarename() + "</option>";
	}
	response.getWriter().write(str);
%>
